﻿namespace Central.Linq.MvcJson.Engine {

	public class SortParam {

		public SortParam() {
			this.Value = Sort.Ascending;
			this.Name = "";
		}

		public SortParam(string fieldname) {
			this.Name = fieldname;
			this.Value = Sort.Ascending;
		}

		/// <summary>
		/// Наименование параметра
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Наименование параметра для UI
		/// </summary>
		public string DisplayName { get; set; }

		/// <summary>
		/// Значение параметра
		/// </summary>
		public Sort Value { get; set; }
	}
}